<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/html" id="state_list">
			{{each list item i}}
				{{if i == 0}}
					<li>
					<p>{{typeName}}</p>
					<span class="squ active" data_region='{{item}}'>{{item}}</span>
				{{else if i != 0 }}
					{{if i%4 == 0}}
					</li>	
					<li>
						<span class="squ" data_region='{{item}}'>{{item}}</span>	
					{{/if}}
					{{if i%4 != 0}}
						<span class="squ" data_region='{{item}}'>{{item}}</span>	
					{{/if}}
				{{/if}}
			{{/each}}
		</script>
		<script>
			data.typeName = type == 1 ? "检车站":"平台"
			$(".date_time").html(template("datetime", data));
		</script>
	</body>
</html>
